:root {
  --iconbg: #1E90FF;
  --gap: 4px;
  --sidebarbg: #272727;
  --borderColor: #3882f1;
  --hoverbg: #00000066;
  --nav-bg: #121111;
}
.menuIcon,
.sidebar {
  display: none;
}
@media (max-width: 750px) {
  header {
    padding: 0;
  }
  header nav a {
    display: none;
  }

  .menuIcon {
    position: absolute;
    right: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-direction: column;
    border: 2px solid var(--borderColor);
    padding: 9px;
    border-radius: 4px;
  }
  .menuIcon:hover {
    background: var(--hoverbg);
  }
  .menuIcon span {
    width: 28px;
    height: 4px;
    background: var(--iconbg);
    border-radius: 4px;
    transition: all 0.5s ease;
  }
  /* MAKE SPAN FOR CANCEL ICON LOOK LIKE AN X SHAPE */
  #middlebar.remove {
    display: none;
  }

  #topbar.crossForward {
    transform: rotate(135deg) translate(6px);
  }

  #bottombar.crossBackward {
    transform: rotate(-135deg) translate(6px);
  }

  #sidebarContainer {
    position: fixed;
    right: -100%;
    transition: all 0.5s ease;
    width: 100%;
    height: 100dvh;
    z-index: 2;
  }
  #sidebarContainer.show {
    right: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  .sidebar {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--sidebarbg);
    height: 100%;
    display: block;
  }
  .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--gap));
    padding-top: 22px;
  }
  .sidebar nav a {
    background: var(--nav-bg);
    text-decoration: none;
    color: #fafafa;
    border: 2px solid var(--borderColor);
    border-radius: 12px;
    text-align: center;
    margin: 0 15px;
    padding: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.6s ease;
  }
  .sidebar nav a:hover {
    border: 2px solid #fafafa;
    background: var(--hoverbg);
  }
}

  @media (min-width: 600px) {
  .sidebar {
    width: 50%;
  }
  }
  @media (max-width: 600px) {
  .sidebar {
    width: 80%;
  }
  }